package cn.com.open.opensaas.answerservice.service;

import cn.com.open.opensaas.answerservice.common.ReturnModel;
import cn.com.open.opensaas.answerservice.model.CourseItemBank;
import cn.com.open.opensaas.answerservice.model.pager.TestPaperContent;
import cn.com.open.opensaas.answerservice.model.question.AnswerQuestionLog;

import java.util.Map;

public interface AnswerQuestionService {
    /**
     * 安全认证
     * @param itemBankId  题库ID
     * @param appkey 应用ID
     * @return
     */
    CourseItemBank findCourseItemBankOne(String itemBankId, String appkey);

    /**
     * 试卷--保存作答记录
     * @param answerQuestionLog
     * @param paperContent
     * @return
     */
    ReturnModel save(AnswerQuestionLog answerQuestionLog, TestPaperContent paperContent);

    /**
     * 试题--保存作答记录
     * @param answerQuestionLog
     * @return
     */
    ReturnModel save(AnswerQuestionLog answerQuestionLog);

}
